-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix(qwik-city): remove doubling of assetDir on postBuild #8152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: e21c487 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
e6b92df to
9299762
Compare
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
commit: |
|
I am noticing one thing locally and that's sounds imported via ?url suffix aren't working correctly but I think that's a Vite thing, even on the latest. I'll test with/without this fix as well just to be sure. The mp3 is loaded relative to the component like so: On a local serve, it loads correctly. On preview/build, the file is sent to /q/assets/AbC-dEf123-click.mp3 but the code tries to load it without the /q/ prefix. |
|
The mp3 issue isn't fixed by removing my patch. I guess it's unrelated as the assetsDir in my PR is only used for generating the staticPaths. I'm not sure if it's a vite or qwik thing but I'll investigate in a separate reproduction |
9299762 to
193b0ed
Compare
What is it?
Description
Removed doubling of assetsDir during bundle close when delivering staticPaths list: #8151
All info in the linked issue but I'll repeat a little how this is broken.
Vite config:
Now if you look at the list of generated staticPaths, you'll see these:
Checklist
pnpm change